<%-- 
    Document   : login
    Created on : Apr 27, 2011, 9:34:30 PM
    Author     : Hpit
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <script type="text/javascript" src="js/jquery-1.5.2.js"></script>
        <script type="text/javascript">
            $(document).ready(function(){
		$("#submit").click(function(){
                    $email=$("#email").val();
                    $password=$("#password").val();
                    $.get("loginServlet", {email:$email,password:$password}, function(data) {
                        $("#msgBox").html(data.toString());
//                        $(window.location).attr('href', 'http://www.google.com');
                    });
		});
            });
        </script>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Login</title>
    </head>
    <body>
        <form name="login_frm" id="login_frm" action="" method="POST">
               <input type="text" value="jamessunderland87@gmail.com" id="email" name="email" size="50"/><br>
               <input type="password" value="123456" id="password" name="password" size="50"/><br>
               <input type="submit" value="submit" id="submit" name="submit"/>
               
       </form>
       <div id="msgBox" name="msgBox"> </div>
    </body>
</html>
